<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@page import="java.util.*, model.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html>
<HEAD>
<TITLE>Are you a Resident of the United States? </TITLE>
</HEAD>
<BODY>

	<html:errors />
	
	<%		   		
	   	Applicant applicant = (Applicant)session.getAttribute("applicant");
	%>
	
	<%="Name: " + applicant.getName() %><br />
	<%="Country of Citizenship: " + applicant.getCitizenship() %> <br />
	<%="Country of Residence: " + applicant.getCountry_of_residence() %><br/>
	<%if(applicant.isDomestic()){ %>
	<%="Address: " + applicant.getAddressDomestic() %><br/>
	<%}else{%>
	<%="Address: " + applicant.getAddressForeign() %><br/>
	<%} %>
	
	<hr /><br /> Are you a Resident of the United States? <br /><br />
	
	<html:form action="/residency" focus="residency" >
		<html:radio property="residency" value="US Permanent Resident" /> US Permanent Resident <br>
		<html:radio property="residency" value="Non-Resident" /> Non-Resident <br>
		<html:submit value="Submit"/>
	</html:form>
	
</BODY>
</html:html>